//网站管理
import request from "../utils/request";
// 根据id的备案信息
export function getById(id) {
  return request.get(`/archivalInformationManagement/${id}`);
}
// 获取根据备案信息列表
export function getList(params) {
  return request.get("/archivalInformationManagement", { params: params });
}

// 添加备案信息
export function addWeb(data) {
  return request.post("/archivalInformationManagement", data);
}
// 修改状态
export function vimState(id,delivery){
    return request.post(
      `/archivalInformationManagement/IsActived/${id}`,
      delivery
    );
}

// 修改备案信息
export function modWeb(id, data) {
         return request.put(`/archivalInformationManagement/${id}`, data);
       }
//删除备案信息
export function deleteWeb(id, data) {
         return request.delete(`/archivalInformationManagement/${id}`, data);
       }